import {request} from "@/network/request-config";


export function getAllStudentAPI(data){
    return request({
        url:"/hems/student/querybypage",
        method:"post",
        data
    }).then(res=>{
        return res
    })
}

export function addStudentAPI(data){
    return request({
        url:"/hems/student/add",
        method:"post",
        data,
    }).then(res=>{
        return res
    })
}

export function modStudentAPI(data){
    return request({
        url:"/hems/student/mod",
        method:"post",
        data,
    }).then(res=>{
        return res
    })
}

// 根据班级id查询这个班级的所有学生
export function getStudentByClassIdAPI(data){
    return request({
        url:"/hems/student/querybyclassid/"+data,
        method:"get",
        data
    }).then(res=>{
        return res
    })
}



